package com.zy.dao.bs;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.zy.dao.base.BaseDao;
import com.zy.entity.bs.Activity;
import com.zy.pojo.query.bs.ActivityQuery;

public interface ActivityDao extends BaseDao<Activity> {

	List<Activity> listActivity(@Param("activityQuery") ActivityQuery activityQuery, @Param("start") Integer start, @Param("limit") Integer limit);

	long countActivity(@Param("activityQuery") ActivityQuery activityQuery);

	/**
	 * 首页滚动图 活动
	 * @param currentTime
	 * @return
	 */
	List<Activity> listActivityForHomePage(@Param("currentTime")Long currentTime);

	List<Activity> listFrontActivity(@Param("activityQuery") ActivityQuery activityQuery, @Param("start") Integer start, @Param("limit") Integer limit);

	long countFrontActivity(@Param("activityQuery") ActivityQuery activityQuery);

	List<Activity> listFourActivity();

    List<Activity> myActivityList(@Param("userId") Long userId, @Param("start") Integer start, @Param("limit") Integer limit);

    long myActivityCount(@Param("userId") Long userId);

    List<Activity> myManagerActivityList(@Param("userId") Long userId, @Param("start") Integer start, @Param("limit") Integer limit);

    long countManagerActivity(@Param("userId") Long userId);
}